package com.qfedu.micrograss.grass.controller;

import com.qfedu.common.core.common.R;
import com.qfedu.micrograss.grass.service.GrassLikeService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @Classname GrassLikeController
 * @Description TODO
 * @Date 2025-05-29 15:41
 * @Created by 老任与码
 */
@RestController
@RequestMapping("/article/like")
public class GrassLikeController {

    @Resource
    private GrassLikeService grassLikeService;

    @GetMapping
    public R like(Integer articleId) {
        grassLikeService.like(articleId);
        return R.ok();
    }
}
